package com.xinqi.modules.chat.chat.group.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 群组表实体层
 *
 * @author: system
 * @date: 2023/01/12
 */
@Setter
@Getter
@TableName("ca_chat_group")
public class ChatGroupEntity extends BaseEntity {
    /**
     * 融云生成群聊ID
     */
    @TableField(value = "group_id")
    private String groupId;
    /**
     * 绑定班级id
     */
    @TableField(value = "class_id")
    private Long classId;
    /**
     * 创建人ID
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 群头像
     */
    @TableField(value = "avatar")
    private String avatar;
    /**
     * 分组名字
     */
    @TableField(value = "group_name")
    private String groupName;
    /**
     * 群组二维码
     */
    @TableField(value = "qr_code")
    private String qrCode;
    /**
     * 加群是否需要审核 1是 0否
     */
    @TableField(value = "examine")
    private Integer examine;
    /**
     * 设置全员禁言 1是 0否
     */
    @TableField(value = "all_forbidden_words")
    private Integer allForbiddenWords;
    /**
     * 1正常2解散
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 群组类型 1普通群 2管理群
     */
    @TableField(value = "group_type")
    private Integer groupType;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
